import React from 'react';
// import {KeyboardAvoidingView, Platform} from 'react-native';
import {NavigationContainer,NavigationContainerRef } from '@react-navigation/native';
import NavigateStack from './app/navigate/NavigateStack';
import './app/lang/i18n';
import CombinProvider from './app/context';
import UploadRoot from './app/context/UploadContext';


export const navigationRef = React.createRef<NavigationContainerRef<any>>();

function App(): React.JSX.Element {
  return (
      <UploadRoot>
        <CombinProvider>
          <NavigationContainer ref={navigationRef}>
            <NavigateStack />
          </NavigationContainer>
        </CombinProvider>
      </UploadRoot>
  );
}

export default App;
